Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: 1182 prevent used resources from deletion #1244

Merged
merged 12 commits into from
Feb 8, 2024

Conversation

MohammedMaaz
Copy link
Contributor

@MohammedMaaz MohammedMaaz commented Jan 22, 2024

Description

Prevent deletion of variant, testsets and evaluators if used in an evaluation
Fixed BE to not crash if a linked resource is deleted

Related Issue

Resolves #1182

Additional Information

The following edge cases were also discovered and worked on:

  • viewing a human evaluation breaks if no testset is available
  • evaluations page gets broken when its linked evaluator configs has already been deleted
  • viewing evaluation results breaks when a testset has already been deleted
  • viewing evaluation comparisons break when a testset has already been deleted

@MohammedMaaz MohammedMaaz requested a review from aakrem January 22, 2024 09:50
@aakrem
Copy link
Collaborator

aakrem commented Feb 5, 2024

@MohammedMaaz Sorry I didn't find time to test this one. Can we fix conflicts so I have a look again!

Copy link
Collaborator

@aakrem aakrem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @MohammedMaaz
thanks @aybruhm

@aakrem aakrem merged commit be925ba into main Feb 8, 2024
7 of 8 checks passed
@aakrem aakrem deleted the fix/1182-prevent-used-resources-from-deletion branch February 8, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent used resources in evaluation from deletion
3 participants